﻿window.onsubmit = loading;
window.onunload = loading;
window.onload = loading;
jQuery(window).load(function () {
    jQuery('#loading2').hide();
});
function loading() {
    var img = document.getElementById('img_loading'); 
    var widths = img.clientWidth;
    var heights = img.clientHeight;
    document.getElementById('loading2').style.marginTop = -heights;
    document.getElementById('loading2').style.marginLeft = -widths;            
}
function UnLoading() {
    jQuery('#loading2').hide(750);
}
